Package com.vasco.image.exception
Class ImageGeneratorSDKException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.vasco.image.exception.ImageGeneratorSDKException
- All Implemented Interfaces:
Serializable
Main class for Image Generator SDK exception.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionImageGeneratorSDKException(int errorCode) Constructor for setting exception with this error codeImageGeneratorSDKException(int errorCode, Throwable cause) Constructs an exception with this error code and its main cause -
Method Summary
Modifier and TypeMethodDescriptiongetCause()Gets the cause of the exceptionintGets the error codeGets the error messagevoidSets the cause of the exceptionvoidsetErrorCode(int errorCode) Sets the error codeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ImageGeneratorSDKException
Constructs an exception with this error code and its main cause- Parameters:
errorCode- The error codecause- The main cause of the exception
-
ImageGeneratorSDKException
public ImageGeneratorSDKException(int errorCode) Constructor for setting exception with this error code- Parameters:
errorCode- The error code
-
-
Method Details
-
getErrorCode
public int getErrorCode()Gets the error code- Returns:
- The error code
-
setErrorCode
public void setErrorCode(int errorCode) Sets the error code- Parameters:
errorCode- The error code to set
-
getCause
Gets the cause of the exception -
setCause
Sets the cause of the exception- Parameters:
cause- The cause to set
-
getErrorMessage
Gets the error message- Returns:
- The error message
-